{template 'yp','center_header'}
<div id="main">
{template "yp","center_left"}
{if $action=='add'}
<div id="right">

<form action="{URL}" method="post" name="myform"  enctype="multipart/form-data" >
<table cellpadding="0" cellspacing="1" class="table_form">
	<caption>发布招聘</caption>
    {loop $forminfos $field $info}
	<tr> 
      <th width="20%"> {if $info['star']} <font color="red">*</font>{/if} <strong>{$info[name]}</strong><br />
	  {$info[tips]}
	  </th>
      <td>{$info[form]} </td>
    </tr>
	{/loop}
    <tr> 
      <td></td>
      <td> 
	  <input type="hidden" name="forward" value="?file=job&action=add"> 
	  <input type="submit" name="dosubmit" value=" 立刻发布 "> 
	  </td>
    </tr>
</table>
</form>
</div>
{elseif $action=='edit'}
<div id="right">
<form action="{URL}" method="post" name="myform"  enctype="multipart/form-data" >
<table cellpadding="0" cellspacing="1" class="table_form">
	<caption>修改招聘</caption>
    {loop $forminfos $field $info}
	<tr> 
      <th width="20%"> {if $info['star']} <font color="red">*</font>{/if} <strong>{$info[name]}</strong><br />
	  {$info[tips]}
	  </th>
      <td>{$info[form]} </td>
    </tr>
	{/loop}
    <tr> 
      <td></td>
      <td> 
	  <input type="hidden" name="forward" value="{$forward}"> 
	  <input type="submit" name="dosubmit" value=" 确定修改 "> 
	  </td>
    </tr>
</table>
</form>
</div>
{else}
	  <div id="right">
		<div class="clear"></div>
		<table cellpadding="0" cellspacing="1" class="table_list">
		  <caption>管理招聘</caption>
		  <tr>
			<th>职位名称</th>
			<th width="50">性别要求</th>
			<th width="100">招聘人数</th>
			<th width="110">发布时间</th>
			<th width="50">操作</th>
		  </tr>
		{loop $infos $info}
		<tr>
			<td class="align_left">
	{if $info['reward']}<span style="color:orange;"><img src="images/icon_credit.gif" width="12" height="11">{$info[reward]} </span>{/if}
		<a href="{show_url('job',$info[id])}" target="_blank" title="{$info[title]}">{str_cut($info[title], 72, '..')}</a> 
			</td>

			<td>{$info[sex]}</td>
			<td>{$info[employ]}</td>
			<td>{date('Y-m-d H:i',$info[inputtime])}</td>
			<td><a href="{BUSINESSDIR}?file={$file}&action=edit&id={$info[id]}"><img src="yp/images/edit.gif" alt="编辑"></a> <a href="javascript:confirmurl('{BUSINESSDIR}?file={$file}&action=delete&id={$info[id]}','确认删除此信息吗？')"><img src="yp/images/delete.gif" alt="删除"></a></td>
		</tr>
		{/loop}
		</table>
		<div id="pages">{$pages}</div>
		<table cellpadding="0" cellspacing="1" class="table_info">
		  <caption>
		  提示信息
		  </caption>
		  <tr>
			<td> 招聘删除后不可恢复
	<br/>
			</td>
		  </tr>
		</table>
	  </div>
{/if}
	</div>
	<div class="clear"></div>
{template 'phpcms','footer'}
<SCRIPT LANGUAGE="JavaScript">
<!--
$().ready(function() {
  $('form').checkForm(1);
});
//-->
</SCRIPT>
<script type="text/javascript" src="images/js/form.js"></script>
<script type="text/javascript" src="images/js/validator.js"></script>
<script type="text/javascript" src="yp/images/js/info_add.js"></script>